<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.Map"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Iterator"%>
 
<%@ page import="org.limp.mine.Label"%>
<%@ page import="org.limp.mine.Controller"%>	
<%@ page import="org.limp.mine.DateTrimmer"%>
<% 
    String context = jt.classic.system.ISystem.getContextPath();
	Object[] result = (Object[])request.getAttribute("result");	
	Label label = (Label)result[1];
	Controller controller = (Controller)result[2];	
	String pageNO = (String)result[3];
	List resultList = (List) result[0];
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>会议室列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<jsp:include page="../../head.jsp"></jsp:include>
<script language="javascript">  
  function handleQuery(){
     dialogX(document.getElementById("querydiv"),true,"查询",200,200);
  }
  
  function query(){
    document.form1.action = context + "/system/hyszy.do?method=query";
    document.form1.submit();
  }
  
  function handleInsert(){
      var url = "<%=context%>/app/hyszy.do?method=neu";
      window.location.href = url;
  }
  
  function handleView(id){
      var url = "<%=context%>/app/hyszy.do?method=view&id=" + id;
      top.xwin(this,url,true,"",400,500);
  }  
</script>
<body>
<form name="form1" method="post" action="">
<input type="hidden" name="pageNO" value="<%=pageNO%>">
<table width="99%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left"> 
    	<img src="/zl/app/hys/hyszy/images/arrow.gif" width="16" height="16">会议室管理 ->> 会议室资源查看 ->> 会议室列表
    </td>
  </tr>  
</table>
<table class="tab" border="0" width="98%" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="8" align="right">
      <input type="button" class="button0" value=" 刷 新 " onclick="javascript:handleReresh();">
    </td>
  </tr>
  <tr>
    <td colspan="8"></td>
  </tr>
  <tr class="tr0" bgcolor="#A7CADE"> 
    <td class="td0" title="全部选择/取消选择" onclick="javascript:checkall();" width="10" align="center">&nbsp;</td>
    <td class="td0" width="30%">&nbsp;会议室名称</td>
    <td class="td0" width="40%">&nbsp;设备</td>
    <td class="td0" width="10%">&nbsp;面积</td>
    <td class="td0" width="10%">&nbsp;容纳人数</td>
  </tr>
  <% 
    if(resultList!=null&&!resultList.isEmpty()){
    
       for(int i=0;i<resultList.size();i++){
	       Map info = (Map)resultList.get(i);
	       String number = (String)info.get("PAGINATION_NUMBER");
	       String HYS_ID = info.get("HYS_ID").toString();
	       
	       String HYS_MC = info.get("HYS_MC").toString();
	        
           String HYS_SB = info.get("HYS_SB").toString();
            String HYS_MJ = info.get("HYS_MJ").toString();
           String HYS_RS = info.get("HYS_RS").toString();
          
  %> 
  <tr onMouseOver="javascript:this.bgColor='#ffff99'" onmouseout=" javascript:this.bgColor='#F5F7F9'" bgColor="#F5F7F9"> 
    <td class="td1" align="center">
    <input type="checkbox" name="chk" value="<%=HYS_ID%>">
    </td>
    <td class="td1">&nbsp;<a href="javascript:void(0);" onclick="javascript:handleView('<%=HYS_ID%>');"><%=HYS_MC%></a></td>
    <td class="td1">&nbsp;<%=HYS_SB%></td>
    <td class="td1">&nbsp;<%=HYS_MJ%></td>
    <td class="td1">&nbsp;<%=HYS_RS%></td>
  </tr>
  <%
        }
     }
  %>
</table> 
<table width="98%" class="tab-noborder" border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td>
    <%=label.displayLabel()%>
   </td>
   <td align="right">
        <%=label.startLabel()%>
        <%=label.previousLabel()%>
        <%=label.nextLabel()%>
        <%=label.endLabel()%>
        <%=controller.getController().toString()%>
    </td>
  </tr>
</table>  
<%=controller.getControlScript(true)%> 
</form>
</body>
</html>	